package com.xcesys.extras.remoting.system;

import java.util.Collection;
import java.util.List;

import com.xcesys.extras.dataobject.system.Resource;
import com.xcesys.extras.dataobject.system.Role;
import com.xcesys.extras.dataobject.system.User;
import com.xcesys.extras.remoting.RemotingCrudService;

public interface RRoleService extends RemotingCrudService<Role> {
	void addResourcestoRole(Long roleId, List<Long> resourceIds);

	void addUsersToRole(Long roleId, List<Long> userIds);

	Collection<Resource> findResoucesInRole(Long roleId);

	List<Resource> findResoucesInRoles(String[] roleNames);

	Collection<User> findUsersInRole(Long roleId);

	void removeResourcesFromRole(Long roleId, List<Long> resourceIds);
}
